<#include "../../common/tags.ftl"/>
<!DOCTYPE html>
<html style="background-color:#f2f2f2;color:#666;">
<head>
    <#include "../../common/meta.ftl"/>
    <title>角色管理</title>
</head>
<body>
<div style="position:relative;padding:15px;margin:0 auto;">
    <div class="layui-card">
        <div class="layui-card-header" style="padding:5px 15px;height:auto;">
            <div class="layui-row" style="position:relative;height:40px;line-height:40px;">
                <div class="layui-col-md9">
                    <form class="layui-form lig-searchform">
                        <div class="layui-inline" style="width:40%;">
                            <input type="text" name="keyword" placeholder="请输入角色名称/角色编码" autocomplete="off"
                                   class="layui-input" style="display:inline-block;width:100%;">
                        </div>
                        <div class="layui-inline">
                            <button type="button" class="layui-btn layui-btn-primary lig-search"
                                    style="margin-bottom:1px;" title="查询">
                                <i class="layui-icon layui-icon-search"></i>
                            </button>
                        </div>
                    </form>
                </div>
                <div class="layui-col-md3">
                    <div style="float:right;">
                        <button class="layui-btn layui-btn-normal lig-add" title="新增用户">
                            <i class="layui-icon layui-icon-add-1"></i>
                            <span>新增</span>
                        </button>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-card-body">
            <table class="lig-table" lay-filter="lig-table"></table>
        </div>
    </div>
</div>
<script type="text/html" id="tableToolbar">
    <div class="layui-btn-container">
        <button class="layui-btn layui-btn-sm layui-btn-primary" lay-event="lig-remove" title="删除">
            <i class="layui-icon layui-icon-delete"></i>
            <span>删除</span>
        </button>
    </div>
</script>
<script type="text/html" id="rowBar">
    <a class="layui-btn layui-btn-primary layui-btn-xs lig-modify" lay-event="lig-modify" title="修改">修改</a>
</script>
<script type="text/html" id="entitymodify">
    <div class="layui-row" style="padding-top: 20px;">
        <div class="layui-col-md7">
            <form class="layui-form" lay-filter="lig-saveform">
                <input type="hidden" name="roleId" value="{{d.roleId}}">
                <div class="layui-form-item">
                    <label class="layui-form-label ligui-form-item-required">角色名称</label>
                    <div class="layui-input-block">
                        <input type="text" name="roleName" lay-verify="required" autocomplete="off" class="layui-input"
                               placeholder="请输入角色名称" value='{{d.roleName}}'>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">角色编码</label>
                    <div class="layui-input-block">
                        <input type="text" name="roleCode" autocomplete="off"
                               class="layui-input" placeholder="请输入角色编码" value="{{d.roleCode}}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">备注</label>
                    <div class="layui-input-block">
                        <input type="text" name="remark" autocomplete="off"
                               class="layui-input" placeholder="请输入备注信息" value="{{d.remark}}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="ligui-layer-btn" style="text-align:left;padding:10px 105px;pointer-events:auto;">
                        <a class="ligui-layer-btn0 ligui-save" lay-submit="" lay-filter="lig-save">保 存</a>
                        <a class="ligui-layer-btn1 ligui-cancel">取 消</a>
                    </div>
                </div>
            </form>
        </div>
        <div class="layui-col-md5"></div>
    </div>
</script>
<script type="text/html" id="entityadd">
    <div class="layui-row" style="padding-top: 20px;">
        <div class="layui-col-md7">
            <form class="layui-form" lay-filter="lig-saveform">
                <div class="layui-form-item">
                    <label class="layui-form-label ligui-form-item-required">角色名称</label>
                    <div class="layui-input-block">
                        <input type="text" name="roleName" lay-verify="required" autocomplete="off" class="layui-input"
                               placeholder="请输入角色名称" value=''>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">角色编码</label>
                    <div class="layui-input-block">
                        <input type="text" name="roleCode" autocomplete="off"
                               class="layui-input" placeholder="请输入角色编码" value="">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">备注</label>
                    <div class="layui-input-block">
                        <input type="text" name="remark" autocomplete="off"
                               class="layui-input" placeholder="请输入备注信息" value="">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="ligui-layer-btn" style="text-align:left;padding:10px 105px;pointer-events:auto;">
                        <a class="ligui-layer-btn0 ligui-save" lay-submit="" lay-filter="lig-save">保 存</a>
                        <a class="ligui-layer-btn1 ligui-cancel">取 消</a>
                    </div>
                </div>
            </form>
        </div>
        <div class="layui-col-md5"></div>
    </div>
</script>
<#include "../../common/script.ftl"/>
<script type="text/javascript" src="${ctx}/static/uc/role/rolemng.js"></script>
</body>
</html>
